< previous page page_525 next page >

Page 525
Q&A
Q What is a breakpoint?
A A breakpoint is a method of setting automatic stops within the application code to halt the execution of the application at a particular statement in order to debug a problem.
Q What are the different ways of setting a breakpoint?
A There are many different ways to set a breakpoint when in a Visual Basic application. You can either set the breakpoints yourself or have Visual Basic do it when you set Break expressions. The most common ways of setting a breakpoint on a particular line of code are:
Select the statement and choose Debug, Toggle Breakpoint from the menu.
Select the statement and press F9.
Select the statement and right-click it to display the pop-up menu. Then choose Toggle, Breakpoint.
Click the mouse in the border to the left of the statement you want the breakpoint on.
Q What is a Watch expression?
A A Watch expression enables you to define a particular condition either for a variable or an expression that Visual Basic will watch. In this case, watch means displaying any changes to the value of the variable or expression in the Watches window when in Break mode, or a Break expression that will halt application execution of the value of the variable or expression changes.
Q What is the Immediate window used for?
A The Immediate window is used to execute any Visual Basic statement or procedure while testing the application. You can also display the value of any variable, property, or expression by using the Print command.
Q What information does the Calls Stack dialog box give you?
A The Calls Stack dialog box displays all the procedures that are active and not yet completed at that moment. It can be used to trace the history of calls that got you to the current statement in the application.
Workshop
The Workshop provides quiz questions to help solidify your understanding of the material covered, as well as exercises to provide you with experience in using what you've

 
< previous page page_525 next page >

If you like this book, buy it!